<template>
  <div class="denglu">
    <div class="dl-top">
      <span @click="$router.go(-1)"
        ><img src="../assets/image/ic_back_dark_center.png" alt="" /></span
      ><span @click="$emit('change', ok)">密码登录</span>
    </div>

    <div class="dl-or-zc">
      <p>手机号登录/注册</p>
      <div class="sj">
        <span>+86 <span>▼</span></span>
        <input type="text" placeholder="输入手机号" />
      </div>
      <div class="yzm">
        <input type="text" placeholder="请输入验证码" />
        <button>获取验证码</button>
      </div>
      <div class="tips">
        <span>未注册的手机号验证后自动创建薄荷账户</span>
        <span>语音验证码</span>
      </div>
      <button>登录</button>
    </div>

    <div class="wb-or-wx">
      <div class="wb"></div>
      <div class="wx"></div>
    </div>

    <div class="xieyi">
      <p>
        <input type="checkbox" id="fxk" /> 我已查看并同意薄荷营养师的
        <a href="http://one.boohee.com/store/pages/food_user_privacy"
          >《用户协议》</a
        >
        和
        <a href="https://one.boohee.com/store/pages/food_privacy_2021"
          >《薄荷营养师隐私政策》</a
        >
      </p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    ok: Boolean,
  },
};
</script>

<style lang="less" scoped>
#fxk {
  width: 16px;
  height: 16px;
  background-color: #fff;

  border: 1px solid #c9c9c9;
  border-radius: 50%;

  color: #fff;
  text-align: center;
  line-height: 15px;

  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

#fxk[type="checkbox"]:hover {
  border: 1px solid #c8c9ca;
}

#fxk:checked {
  color: #fff;
  background-color: orange;
  // border: 1px solid #43adea;
}

#fxk:after {
  content: "\2713";
}

.denglu {
  position: relative;
  .dl-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    span {
      &:nth-of-type(1) {
        // margin-top: 2px;
        padding-left: 3px;
        img {
          padding-top: 4px;
          width: 40px;
          height: 40px;
        }
      }
      &:nth-of-type(2) {
        padding-right: 20px;
        padding-top: 10px;
      }
    }
  }
  .dl-or-zc {
    margin: 0 20px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    flex-direction: column;
    p {
      width: 100%;
      font-size: 25px;
      flex: 1;
      margin-bottom: 30px;
    }
    .sj {
      width: 100%;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(173, 166, 166, 0.575);
      margin-bottom: 15px;
      span {
        margin-right: 10px;
        span {
          font-size: 12px;
        }
      }
      input {
        width: 80%;
        height: 20px;
        border: 0px;
        flex: 1;
      }
    }
  }
  .yzm {
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(173, 166, 166, 0.575);

    margin-bottom: 15px;
    input {
      width: 70%;
      height: 20px;
      border: 0px;
      //   flex: 1;
    }
    button {
      width: 30%;
      padding: 5px;
      font-size: 14px;
      border-radius: 15px;
      border: 1px solid orange;
      color: orange;
      background-color: #fff;
    }
  }
  .tips {
    width: 100%;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    span {
      &:nth-of-type(1) {
        color: #a8acbc;
      }
      &:nth-of-type(2) {
        color: orange;
      }
    }
  }
  button {
    width: 100%;
    margin-top: 40px;
    border-radius: 20px;
    padding: 10px;
    font-size: 18px;
    background-color: #eeeff3;
    border: 0;
    color: #a8acbc;
  }
  .wb-or-wx {
    width: 60%;
    position: absolute;
    bottom: -200px;
    left: 20%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .wb {
      width: 50px;
      height: 50px;
      background-color: red;
      border-radius: 50%;
      background: url("../assets/image/ic_share_white_wechat.png") no-repeat;
      background-size: cover;
    }
    .wx {
      width: 50px;
      height: 50px;
      background-color: red;
      border-radius: 50%;
      background: url("../assets/image/ic_share_white_weibo.png") no-repeat;
      background-size: cover;
    }
  }
  .xieyi {
    width: 90%;
    position: absolute;
    bottom: -300px;
    left: 5%;
    font-size: 12px;
    zoom: 0.8;

    p {
      display: flex;
      align-items: center;
      color: #a8acbc;
      a {
        color: rgb(10, 202, 10);
      }
    }

    input {
      margin-right: 3px;
      width: 16px;
      height: 16px;
    }
  }
}
</style>